#!/bin/sh

echo 0 > /proc/sys/kernel/printk
while true; do voltage_ocv=`cat /sys/class/power_supply/battery/voltage_ocv`; current_now=`cat /sys/class/power_supply/battery/current_now`; voltage_now=`cat /sys/class/power_supply/battery/voltage_now`; echo "$(date +%H:%M:%S) Voltage_ocv=$voltage_ocv Voltage_now=$voltage_now Current_now=$current_now"; sleep 1; done
